import { CANVAS_ELE_TYPE } from '@/utils/constants'
import { FreeDrawStyle } from '@/utils/element/freeDraw'

export const typeSwitch = [
  {
    type: CANVAS_ELE_TYPE.FREE_DRAW,
    text: 'tool.draw',
    name:'画笔'
  },
  {
    type: CANVAS_ELE_TYPE.ERASER,
    text: 'tool.eraser',
    name:'橡皮擦'
  },
  {
    type: CANVAS_ELE_TYPE.SELECT,
    text: 'tool.select',
    name:'选择'
  }
]

export const styleSwitch = {
  line_1: [
    {
      type: FreeDrawStyle.Basic,
      text: 'style.basic',
      name:'单色',
    },
    {
      type: FreeDrawStyle.Shadow,
      text: 'style.shadow',
      name:'荧光',
    },
    {
      type: FreeDrawStyle.MultiColor,
      text: 'style.multicolor',
      name:'多色',
    }
  ],
  line_2: [
    {
      type: FreeDrawStyle.Spray,
      text: 'style.spray',
      name:'喷雾'
    },
    {
      type: FreeDrawStyle.Crayon,
      text: 'style.crayon',
      name:'蜡笔'
    },
    {
      type: FreeDrawStyle.Bubble,
      text: 'style.bubble',
      name:'泡泡'
    }
  ]
}

export const CHANGE_COLOR_TYPE = {
  UNI: 'uni',
  MULTI: 'multi'
}
